package cn.xhjava.crm.workbench.service;

import cn.xhjava.crm.workbench.domain.Activity;
import cn.xhjava.crm.workbench.domain.Clue;
import cn.xhjava.crm.workbench.domain.DateDataMapVO;

import java.util.List;
import java.util.Map;

/**
 * Author:   XiaHu
 * Date:     2023/6/27
 */
public interface ActivityService {
    int add(Activity activity) throws Exception;

    int addList(List<Activity> activityList) throws Exception;

    List<Activity> selectForPage(Map<String, Object> map) throws Exception;

    int selectCountForPage(Map<String, Object> map) throws Exception;

    Activity selectDetailById(String id) throws Exception;

    int delete(String[] id) throws Exception;

    int update(Activity activity) throws Exception;

    List<Activity> selectLikeName(String name) throws Exception;

    List<Activity> selectAll() throws Exception;

    List<Activity> selectList(String[] ids) throws Exception;

    List<Activity> selectClueActivityRelationByClueId(String id) throws Exception;

    List<Activity> selectDetailListById(String[] activityId) throws Exception;

    List<Activity> selectContactsActivityRelationByContactsId(String id) throws Exception;

    List<Activity> selectActivityByNameAndClueId(Map<String, Object> map) throws Exception;

    List<Activity> selectActivityByNameAndContactsId(Map<String, Object> map) throws Exception;

    DateDataMapVO queryActivityCountGroupByCreateTime() throws Exception;

}
